package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.ProductParamsMapper;
import com.qf.pojo.ProductParams;
import com.qf.service.ProductParamsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 87380
 * @date 2021/12/3
 */
@Service
public class ProductParamsServiceImpl implements ProductParamsService {

    @Resource
    private ProductParamsMapper productParamsMapper;

    @Override
    public ProductParams paramsById(Integer id) {
        QueryWrapper<ProductParams> wrapper = new QueryWrapper<>();
        wrapper.eq("product_id",id);

        return productParamsMapper.selectOne(wrapper);
    }
}
